home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Containers / SimpleApp / CSimpleAppSite.h < prev    next >
Encoding:
Text File  |  1996-12-20  |  554 b   |  29 lines  |  [TEXT/CWIE]

  1. //
  2. //    CAppSite.h
  3. //
  4. //    Copyright (C) Microsoft Corporation, 1996
  5. //
  6.  
  7. typedef enum
  8. {
  9.     BeginContextID = 0,
  10.     WindowContextID,
  11.     OffscreenContextID,
  12.     EndContextID
  13. }
  14. SimpleAppContextIDs;
  15.  
  16. class CSimpleAppSite : public CXSite
  17. {
  18. public:
  19.  
  20.     // **** IContainerSite methods ***
  21.     STDMETHOD (AcquireContext) (THIS_ Uint32 inContextID, DrawContext* Context);
  22.     STDMETHOD (RequestSizeChange) (THIS_ PlatformPoint* ioSize);
  23.     STDMETHOD (OnChange) (THIS_ ChangeType inChangeType);
  24.  
  25. protected:
  26.     virtual Boolean8 GetContextID (Int32 inContextIndex, UInt32* outContextID);
  27.  
  28. };
  29.